package cn.marinda.entity;

import cn.marinda.util.HttpUtils;
import lombok.Data;

/**
 * 抽象服务器资源
 *
 * @author marinda
 * @date 2022/07/14
 */
@Data
public abstract class AbstractServerResource implements ServerResource{

    /**
     * 核心文件名称
     */
    protected String fileName;
    //    接入Core下载地址
    protected final String URL_PATH = "http://175.24.177.189/";
    protected Server serverDir = Server.SERVER_DOWNLOAD_CORE;

    public AbstractServerResource(){

    }

    public AbstractServerResource(String fileName){
        this.fileName = fileName;
    }


    /**
     * 资源列表
     *
     * @return {@link String[]}
     */
    protected abstract String[] resourceList();

    /**
     * 服务器目录
     *
     * @return {@link Server}
     */
    protected abstract Server serverDir();
}
